Skip to content

Add the ReactiveScript map and dev hot replacement - #100

Draft
devagrawal09 wants to merge 37 commits into
solidjs:mainfrom
devagrawal09:upstream/tooling
Draft

devagrawal09 wants to merge 37 commits into
solidjs:mainfrom
devagrawal09:upstream/tooling

Conversation

@devagrawal09

Copy link
Copy Markdown
Collaborator

Stacked on #99; review only the last 3 commits:

  • e30e928 Add the ReactiveScript map and keyed dev replacement
  • 7214d9d Rebuild the map page from the split compiler and runtime
  • ddc27bd Check travel denial against stock Solid

What and why

Builds on dev keys. @reactivescript/map shows the static program and a live view of changes. It includes an RX app for the map page, read-only MCP queries, layout and diffing, travel, and a fake host and conformance suite. The compiler plans keyed hot replacement; the map can observe it without owning it.

Travel and map-observed HMR state carry-over require openView from solidjs/solid#5089. See also solidjs/solid#5198 and the openView discussion. On stock Solid 2.0, travel reports unsupported; map-observed HMR reports that keyed replacement is unsupported and falls back to a full reload. Live inspection still works where dev attribution is available. Exact list travel requires the additional view fixes listed in the README.

Compatibility

No intended changes to production lowering. The live map and HMR are dev-only. The view and some attribution details depend on experimental Solid APIs and are capability-checked.

Verification

Check Result
Interpreter, Solid oracle, compiled scenarios Pass
TypeScript projection scenarios 202 pass
Rust tests, Node-API, runtime Pass
Checker and projection parity 414/414 and 235/235
Lowering parity 209/239 in each mode; strict runner reports the 30 known mismatches
SSR/hydration 144 pass, 0 fail, 7 skipped in both standard and RX_DEV=1 runs. S-sf-1 also passed in isolation in both modes.
Map package without SOLID_VIEW Pass with RXC set; real-host view tests skipped
Map package with SOLID_VIEW Pass, including DOM travel and HMR
Stock Solid browser smoke test Travel returns unsupported and the app still responds

Questions for Ryan

  • Should the map wait for Solid’s view and attribution APIs to stabilize, or ship sooner with travel labeled experimental?
  • Which attribution details should be public: flight starts, disposal, store paths, or accessor identity?
  • Should the generated page be checked in or built only at package time?

… its line.

`e as T` is TypeScript's assertion: erased where the program runs, kept in the projection. A statement-bodied arrow that fails to parse is no longer re-read as a record, which blamed the handler's `let` with JS_LOCAL.
`source open := false` is already a boolean. Inside `{if open}` the read is `true`, and `open := false` was checked against that. The projection keeps the slot's type and checks the write against it.
The projection checks the import against the declaration, so a ref parameter or result is that type and not the accessor the implementation is written with. The compiled import is unchanged.
The read happens when the handler runs, and the branch may no longer hold. Snapshot into a local and narrow that. A check inside the handler still narrows its own snapshot.
…s an error.

CSS-2 already scopes a stylesheet to its own view, so Row stayed unstyled with no warning. STYLE_SCOPE names the other component and the fix: its own style, or a class map.
…has none.

n++ in a handler was reported as a generic parse error once the statement reading won outright. The expression reading's ASSIGNMENT hint is kept, and JS_LOCAL from re-reading the body as a record is not.
NoteList's stylesheet does not reach Row (CSS-2). .when and td were pruned; they belong on Row.
…eeps the value.

`out := s as Status` evaluated to undefined: the oracle's expression walk had no case for `as`. The checker walks through it too, so the read is still the operand.
…rt type.

The projection aliases the other declare namespace, not the sibling .ts.
The model marks that region shadowed by the inner one, so the map can draw it.
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​reactivescript/​compiler@​0.3.17110010091100

View full report

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant